<template>
  <el-table :data="dataList" stripe border style="width: 100%">
    <el-table-column prop="username" label="登录账户" width="180">
    </el-table-column>

    <el-table-column prop="lastLogin.ip" label="上次IP" width="180">
    </el-table-column>

    <el-table-column
      prop="lastLogin.loginTime"
      label="上次登录时间"
      width="180"
    >
    </el-table-column>

    <el-table-column prop="nowLogin.ip" label="现在登录账户" width="180">
    </el-table-column>

    <el-table-column prop="nowLogin.loginTime" label="现在登录时间" width="180">
    </el-table-column>
  </el-table>
</template>

<script>
import { getlog } from "@/api";
export default {
  data() {
    return {
      dataList: [],
    };
  },
  mounted() {
    getlog().then((res) => {
      console.log("登录日志", res.data.data);
      this.dataList = res.data.data;
    });
  },
};
</script>
